package web.suzy.oj.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import web.suzy.oj.utils.IpUtils;

/**
 * YangSuzy 软件工作室
 * 类名: WebConfig
 * 描述: ---- 待定 -----
 * 功能: ---- 待定 -----
 *
 * @author YangSuzy
 * Date: 2022/11/13 23:06
 */
@Data
public class WebConfig {
    /**
     * 邮箱配置
     */
    private String emailUsername;

    private String emailPassword;

    private String emailHost;

    private Integer emailPort;

    private Boolean emailSsl = true;

    /**
     * 网站前端显示配置
     */
    private String baseUrl = "http://" + IpUtils.getServiceIp();

    private String name = "Suzy Online Judge";

    private String shortName = "SOJ";

    private String description;

    private Boolean register = true;

    private String recordName;

    private String recordUrl;

    private String projectName = "SOJ";

    private String projectUrl = "https://gitee.com/yangsuzy/SuzyOJ-master";
}
